#include"List.h"

test1()
{
	LTNode* plist = LTInit();

	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPushBack(plist, 5);
	LTPushFront(plist, 2);
	LTPushFront(plist, 1);
	LTPushFront(plist, 1);
	LTPrint(plist);

	LTPopBack(plist);
	LTPopFront(plist);
	LTPrint(plist);

	LTDestroy(plist);
	plist = NULL;
}


void test2()
{
	LTNode* plist = LTInit();

	LTPushBack(plist, 3);
	LTPushBack(plist, 5);
	LTPushBack(plist, 6);
	LTPushBack(plist, 6);
	LTPushFront(plist, 2);
	LTPushFront(plist, 1);
	LTPrint(plist);

	LTInsert(LTFind(plist, 5), 4);
	LTInsert(LTFind(plist, 2), 1);
	LTPrint(plist);

	LTPopBack(plist);
	LTPopFront(plist);
	LTPrint(plist);

	LTDestroy(plist);
	plist = NULL;
}


int main()
{
	//test1();
	test2();


	return 0;
}